#define  _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"
#include "Queue.h"

void TestStack()
{
	Stack st;
	/*StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	printf("StackSize: %d\n", StackSize(&st));
	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
	printf("\n");*/

	char str[] = "()";
	printf("%d\n", isValid(str));
}

void TestQueue()
{
	Queue qu;
	QueueInit(&qu);

	QueuePush(&qu, 1);
	QueuePush(&qu, 2);
	QueuePush(&qu, 3);
	QueuePush(&qu, 4);
	QueuePush(&qu, 5);
	printf("QueueBack: %d\n", QueueBack(&qu));
	while (!QueueEmpty(&qu))
	{
		printf("%d ", QueueFront(&qu));
		QueuePop(&qu);
	}
}

int main()
{
	//TestStack();
	TestQueue();

	return 0;
}